package com.bjsxt.sm.users.pojo;

import java.util.Date;

public class Acars
{
	private int id;
	private String number;
	private String ctype;
	private String color;
	private double price;
	private String imgPath;
	private double rentprice;
	private double deposit;
	private String description;
	private byte status;
	private Date createTime;
	private Date updateTime;
	
	private String statusStrs;
	public int getId()
	{
		return id;
	}
	public void setId(int id)
	{
		this.id = id;
	}
	public String getNumber()
	{
		return number;
	}
	public void setNumber(String number)
	{
		this.number = number;
	}
	public String getCtype()
	{
		return ctype;
	}
	public void setCtype(String ctype)
	{
		this.ctype = ctype;
	}
	public String getColor()
	{
		return color;
	}
	public void setColor(String color)
	{
		this.color = color;
	}
	public double getPrice()
	{
		return price;
	}
	public void setPrice(double price)
	{
		this.price = price;
	}
	public String getImgPath()
	{
		return imgPath;
	}
	public void setImgPath(String imgPath)
	{
		this.imgPath = imgPath;
	}
	public double getRentprice()
	{
		return rentprice;
	}
	public void setRentprice(double rentprice)
	{
		this.rentprice = rentprice;
	}
	public double getDeposit()
	{
		return deposit;
	}
	public void setDeposit(double deposit)
	{
		this.deposit = deposit;
	}
	public String getDescription()
	{
		return description;
	}
	public void setDescription(String description)
	{
		this.description = description;
	}
	public byte getStatus()
	{
		return status;
	}
	public void setStatus(byte status)
	{
		this.status = status;
	}
	public Date getCreateTime()
	{
		return createTime;
	}
	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}
	public Date getUpdateTime()
	{
		return updateTime;
	}
	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}
	public String getStatusStrs()
	{
		AusersEnum[] usersEnum=AusersEnum.values();
		for (int i = 0; i < usersEnum.length; i++)
		{
			AusersEnum ausersEnum = usersEnum[i];
			if(ausersEnum.getSex()==this.getStatus() && ausersEnum.toString().startsWith("CARS_")){
				this.status=ausersEnum.getSex();
			}
		}
		return statusStrs;
	}
	public void setStatusStrs(String statusStrs)
	{
		this.statusStrs = statusStrs;
	}
	

}
